package com.example.service;

import com.example.pojo.TbBookBase;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Author:20201002983_郑雨蓓
 * Date: 2022/12/15
 * Description:
 */
public interface TbBookBaseService {

    List<TbBookBase> list();

    TbBookBase selectById(Long bookId);

    List<TbBookBase> selectByCategoryId(Long cid);

    List<TbBookBase> selectByName(String bookName);

    List<TbBookBase> selectByWriter(String writerName);

    List<TbBookBase> selectByMulCon(TbBookBase tbBook);

    int add(@Param("book") TbBookBase tbBook);

    int add2(@Param("book") TbBookBase tbBook);

    int update(TbBookBase tbBook);

    int updateSellingPrice(Integer sellingPrice, Long id);


}
